<?php /* Smarty version 2.6.26, created on 2018-07-20 02:31:57
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/goods_order/index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>订单列表</span></div> 
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>订单删除功能，只能对只下单未支付的订单进行删除。</p>   
	</div> 
</div>
<div class="filter"> 
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
	<a href="?m=goods_order" class="<?php if ($_GET['status'] == ''): ?>option_ch<?php else: ?>option<?php endif; ?>">全部</a>
	<a href="?m=goods_order&status=1" class="<?php if ($_GET['status'] == '1'): ?>option_ch<?php else: ?>option<?php endif; ?>">下单</a>
	<a href="?m=goods_order&status=2" class="<?php if ($_GET['status'] == '2'): ?>option_ch<?php else: ?>option<?php endif; ?>">支付</a>
	<a href="?m=goods_order&status=3" class="<?php if ($_GET['status'] == '3'): ?>option_ch<?php else: ?>option<?php endif; ?>">发货</a>
	<a href="?m=goods_order&status=4" class="<?php if ($_GET['status'] == '4'): ?>option_ch<?php else: ?>option<?php endif; ?>">收货</a>
	<a href="?m=goods_order&status=5" class="<?php if ($_GET['status'] == '5'): ?>option_ch<?php else: ?>option<?php endif; ?>">评价</a>
	<a href="?m=goods_order&status=0" class="<?php if ($_GET['status'] == '0'): ?>option_ch<?php else: ?>option<?php endif; ?>">失效</a>
	<form action="#" method="get">
		<input type="hidden" name="m" value="goods_order"/>	
		<input type="hidden" name="a" value="index"/>
		<div class="sch">
			<input type="text" name="order_no" class="text" value="" size="25" placeholder="订单号码"/>
			<input type="submit" class="submit" value="查找"/>
		</div>
	</form> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th> 
				<th width="38">方式</th>
				<th width="120">下单时间</th> 
				<th width="150">订单编号</th>  
				<th width="150">商户名称</th>
				<th width="60">价格</th>
				<th width="60">支付</th>
				<th width="130">支付时间</th>
				<th width="80">订单状态</th>
				<th width="120">查看订单</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
	<?php if ($this->_tpl_vars['data']['list']): ?>
		<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
			<tr>
				<td><input name="key_id[]" type="checkbox" value="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="checked_list"/></td>
				<td><?php if ($this->_tpl_vars['i']['position']): ?><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/icon/pst_<?php echo $this->_tpl_vars['i']['position']; ?>
.png"/><?php else: ?><?php endif; ?></td>
				<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
				<td><?php echo $this->_tpl_vars['i']['order_no']; ?>
</td> 
				<td><?php echo $this->_tpl_vars['i']['shop_name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['i']['goods_price']; ?>
</td>  
				<td><?php echo $this->_tpl_vars['i']['total_price']; ?>
</td>
				<td><?php echo $this->_tpl_vars['i']['pay_time']; ?>
</td> 
				<td><?php echo $this->_tpl_vars['i']['order_status_cn']; ?>
</td>  
				<td><a href="?m=goods_order&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="view">查看</a>
					<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
				</td>
				<td></td>
			</tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php else: ?>
	  		<tr><td colspan="11">还没有数据，赶快添加吧！</td></tr>
	<?php endif; ?>
		</tbody> 
	</table> 
	<?php if ($this->_tpl_vars['data']['page']): ?>
		<div class="operate"> 
			<div class="tpage"><?php echo $this->_tpl_vars['data']['page']; ?>
</div>
		</div>
	<?php endif; ?> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=goods_order&a=del', '.del_ck');
</script>